<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>组件平台</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="format-detection" content="telephone=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <link rel="alternate icon" type="image/png" href="/AmazeUI/i/favicon.png">
  <link rel="stylesheet" href="/AmazeUI/css/amazeui.min.css"/>

</head>
<body>

<!--Header-->

<%
include("top.html"){}
%>


<!--最新产品-->
<div class="detail" style="background-color:#f8f8f8;padding-top:20px;">
  <div class="am-g am-container">


    <h3 class="detail-h3" style="text-align: left;padding-left: 10px;">
      最新组件
      <span class="am-fr sm-block" style="line-height: 33px; font-weight:normal; font-size:14px ;">
        <a href="/search">更多新组件...</a></span>

    </h3>

    <ul data-am-widget="gallery" class="am-gallery am-avg-sm-2
  am-avg-md-3 am-avg-lg-4 am-gallery-default" data-am-gallery="{ pureview:false }">

      <%
      for(product in newProduct_list){
      %>
      <li>
        <div class="am-gallery-item">
          <a href="/component?productid=${product.id!}" class="" >
            <img src="${product.smallimage!}" alt="${product.name!}" style="width: 200px;height: 320px;"/>
            <h3 class="am-gallery-title">${product.name!}</h3>
            <div class="am-gallery-desc">更新日期：${product.editdate!,'yyyy-MM-dd'}</div>
            <div class="am-gallery-desc">作者：${product.author!}</div>
          </a>
        </div>
      </li>
      <%}%>

    </ul>
  </div>
</div>

<!--最新产品-->
<div class="detail" style="background-color:#f8f8f8;padding-top: 10px;">
  <div class="am-g am-container">


    <h3 class="detail-h3" style="text-align: left;padding-left: 10px;">
      热门组件
      <span class="am-fr sm-block" style="line-height: 33px; font-weight:normal; font-size:14px ;">
        <a href="/search">更多热门组件...</a></span>

    </h3>

    <ul data-am-widget="gallery" class="am-gallery am-avg-sm-2
  am-avg-md-3 am-avg-lg-4 am-gallery-default" data-am-gallery="{ pureview:false }">

      <%
      for(product in hotProduct_list){
      %>
      <li>
        <div class="am-gallery-item">
          <a href="/component?productid=${product.id!}" class="" >
            <img src="${product.smallimage!}" alt="${product.name!}" style="width: 200px;height: 320px;"/>
            <h3 class="am-gallery-title">${product.name!}</h3>
            <div class="am-gallery-desc">更新日期：${product.editdate!,'yyyy-MM-dd'}</div>
            <div class="am-gallery-desc">作者：${product.author!}</div>
          </a>
        </div>
      </li>
      <%}%>

    </ul>
  </div>
</div>

<!--Footer-->
<%
include("footer.html"){}
%>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="/AmazeUI/js/polyfill/rem.min.js"></script>
<script src="/AmazeUI/js/polyfill/respond.min.js"></script>
<script src="/AmazeUI/js/amazeui.legacy.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/AmazeUI/js/jquery.min.js"></script>
<script src="/AmazeUI/js/amazeui.min.js"></script>
<!--<![endif]-->
</body>
</html>